package com.amigo.online.provider.user.model.entity;

import javax.persistence.Table;

import com.amigo.online.common.base.entity.BaseEntity;
import org.apache.ibatis.type.Alias;

@Table(name = "group_member_tbl")
@Alias(value = "groupMember")
public class GroupMember extends BaseEntity {

    /**
     * 群组成员
     */
    private static final long serialVersionUID = -3908967785759069603L;

    private Long group_id;
    private Long user_id;
    //申请入群备注
    private String message;
    //申请状态
    private Integer is_allow;
    /*群昵称*/
    private String username;
    /*是否是管理员*/
    private Integer manager;
    /*是否禁言*/
    private Integer baned;
    /*是否提醒*/
    private Integer remind;
    /*是否是群主*/
    private Integer host;
    /*是否退出*/
    private Integer quit;
    private Long quit_time;
    private Long updated_time;
    private Long reviewer;

    public Long getReviewer() {
        return reviewer;
    }

    public void setReviewer(Long reviewer) {
        this.reviewer = reviewer;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getIs_allow() {
        return is_allow;
    }

    public void setIs_allow(Integer is_allow) {
        this.is_allow = is_allow;
    }

    public Long getGroup_id() {
        return group_id;
    }

    public void setGroup_id(Long group_id) {
        this.group_id = group_id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getManager() {
        return manager;
    }

    public void setManager(Integer manager) {
        this.manager = manager;
    }

    public Integer getBaned() {
        return baned;
    }

    public void setBaned(Integer baned) {
        this.baned = baned;
    }

    public Integer getRemind() {
        return remind;
    }

    public void setRemind(Integer remind) {
        this.remind = remind;
    }

    public Integer getHost() {
        return host;
    }

    public void setHost(Integer host) {
        this.host = host;
    }

    public Integer getQuit() {
        return quit;
    }

    public void setQuit(Integer quit) {
        this.quit = quit;
    }

    public Long getQuit_time() {
        return quit_time;
    }

    public void setQuit_time(Long quit_time) {
        this.quit_time = quit_time;
    }

    public Long getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(Long updated_time) {
        this.updated_time = updated_time;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        GroupMember other = (GroupMember) obj;
        if (group_id == null) {
            if (other.group_id != null) {
                return false;
            }
        } else if (!group_id.equals(other.group_id)) {
            return false;
        }
        if (user_id == null) {
            if (other.user_id != null) {
                return false;
            }
        } else if (!user_id.equals(other.user_id)) {
            return false;
        }
        return true;
    }


}
